import http from '@/utils/http'


// 查询住院人员信息
const InpatientInformationUrl='/hospitalization/msg'

const InpatientInformationQueryApi=({userId})=>{
	return http({
		url:InpatientInformationUrl,
		params:{userId}
	})
}
// 查询查询住院记录
const inpatientRecordsUrl='/hospitalization/msg/hospitalization'

const inpatientRecordsApi=({startTime,endTime,id})=>{
	return http({
		url:inpatientRecordsUrl,
		params:{startTime,endTime,id}
	})
}
// 查询费用详情
const FeeDetailsUrl='/hospitalization/msg/idcard'

const FeeDetailsApi=({id})=>{
	return http({
		url:FeeDetailsUrl,
		params:{id}
	})
}
// 查询就诊信息
const VisitInformationUrl='/hospitalization/msg/query'
const VisitInformationApi=({patientId,useId})=>{
	return http({
		url:VisitInformationUrl,
		params:{patientId,useId}
	})
}
// 查询时间段消费金额
const PeriodHospitalizationUrl='/hospitalization/msg/dayfees'
const PeriodHospitalizationApi=({id,patientId})=>{
	return http({
		url:PeriodHospitalizationUrl,
		params:{id,patientId}
	})
}
// 病历查询
const consMedicalRecordQueryUrl='/medical-record/list/'
const consMedicalRecordQueryApi=({patientId,startDate,endDate})=>{
	return http({
		url:`/medical-record/list/${patientId}/${startDate}/${endDate}`
	})
}
// 报告查询
const ReportQueryUrl="/report-queries/list/"
const ReportQueryApi=({checkType,createDate,endDate})=>{
	return http({
		url:`${ReportQueryUrl}${checkType}/${createDate}/${endDate}`
	})
}
// 新增住院号
const BindInpatientUrl='/hospitalization/msg'
const BindInpatientApi=(patientId)=>{
	return http({
		url:BindInpatientUrl,
		method:'post',
		data:patientId
	})
}
export {InpatientInformationQueryApi,inpatientRecordsApi,FeeDetailsApi,VisitInformationApi,PeriodHospitalizationApi,consMedicalRecordQueryApi,ReportQueryApi,BindInpatientApi}